import request from '@/utils/request'

// 查询
export function getAdclsses() {
    return request({
        url: '/adclass/getAll',
        method: 'get'
    })
}

// 新增
export function addAdclass(data) {
    return request({
        url: '/adclass/add',
        method: 'post',
        data
    })
}

// 更新
export function updateAdclass(id, data) {
    return request({
        url: '/adclass/update?id=' + id,
        method: 'post',
        data
    })
}

// 删除
export function deleteAdclass(id) {
    return request({
        url: '/adclass/delete?id=' + id,
        method: 'post'
    })
}

// 批量删除
export function multiDeleteAdclasses(data) {
    return request({
        url: '/adclass/multiDelete',
        method: 'post',
        data
    })
}